<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/head/common/include/page.jsp" %>
<jsp:useBean id="pojo" class="com.wang.users.pojo.AUsers"/>
<c:set value="${requestScope.usersResponse.data.one }" var="one"/>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<title>上传头像 - 体能测试系统</title>
		<%@ include file="/head/common/include/title.jsp" %>
	</head>
	<body>
		<%@ include file="/head/common/include/header.jsp" %>
		<div class="container">
			<div class="row">
				<div class="col-sm-8 col-sm-offset-1 main">
					<h2
						class="col-sm-10 col-sm-offset-1 form-signin-heading text-center">上传头像</h2>
	
					<form id="form" class="form-horizontal" method="post" enctype="multipart/form-data"
						action="${rootPath }/head/users/usersUpdateSubmit">
						
						<input type="hidden" name="operType" value="${requestScope.operType }">
						<input type="hidden" name="id" value="${one.id }">
						
						<div class="form-group">
							<label for="email" class="col-sm-2 control-label">邮箱:</label>
							${one.email }
						</div>
						<div class="form-group">
							<label for="email" class="col-sm-2 control-label">头像:</label>
							<div class="col-sm-8">
								<input type="file" id="file" name="file"
									class="form-control">
							</div>
						</div>
						<div class="form-group">
							<label for="email" class="col-sm-2 control-label">原头像:</label>
							<div class="col-sm-8">
								<img alt="" src="${websiteFileUrl }${one.headportrait}" width="150" height="150">
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-8 col-sm-offset-2">
								<button class="btn btn-lg btn-primary" type="submit">提交</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
		<%@ include file="/head/common/include/footer.jsp" %>
	</body>
</html>